import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.*;


public class CardMouseListener extends MouseAdapter {
	private CardClient main;
	private CardPanel pane;

    public CardMouseListener(CardClient main) {
    	this.main=main;
    }
    
    public void mouseReleased(MouseEvent evt) {
		this.pane=(CardPanel)evt.getSource();
		Point point = (Point)evt.getPoint();
		int index = pane.clickCard(point);
	}
    
}